package com.itheima.reader;

import java.io.FileReader;
import java.io.IOException;

public class Demo02 {
    public static void main(String[] args) throws IOException {

        FileReader fr = new FileReader("20240417\\a.txt");

        char[] chars = new char[2];

        int len;

        while ((len=fr.read(chars))!=-1)
        {
            System.out.println(new String(chars,0,len));
        }
        fr.close();
    }
}
